package object3.package1;

public class Cat extends Animal{
//    @Override//用来显式指定重写方法的注解,能让编译器在编译代码/JVM在执行代码时进行一些合法性校验,比如验证名字是否输错
    public Cat eat(){
        System.out.println("Cat is eating");
        return this;
    }
    public void meow(){
        System.out.println("喵喵喵");
    }
}